home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / FLI106C.ZIP;1 / DIASPICK.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-12  |  1.2 KB  |  48 lines

  1. //
  2. // The Fusion Library Interface for DOS
  3. // Version 1.06c
  4. // Copyright (C) 1990, 1991, 1992
  5. // Software Dimensions
  6. //
  7. // DialogClass
  8. // DiaPickList (Index Based Pick-Lists)
  9. // DiaStructPickList (Structure Based Pick-Lists)
  10. //
  11.  
  12. #include "fli.h"
  13. #include "elements.h"
  14. #include "colors.h"
  15.  
  16. #ifdef __BCPLUSPLUS__
  17. #pragma hdrstop
  18. #endif
  19.  
  20. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  21. //
  22. // DiaStructPickList()
  23. //
  24. // Constructor for DiaStructPickList
  25. //
  26. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  27.  
  28. DiaStructPickList::DiaStructPickList(int _X,int _Y,int _Width,int _Height,
  29.   int &_Item,int &_ItemCount,int _StructWidth,void *_Items) :
  30.   DiaPickGeneric(_X,_Y,_Width,_Height,_Item,_ItemCount),
  31.   Items(_Items),
  32.   StructWidth(_StructWidth)
  33. {
  34. }
  35.  
  36. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  37. //
  38. // GetItem()
  39. //
  40. // Gets item from structured pick list
  41. //
  42. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  43.  
  44. char *DiaStructPickList::GetItem(int ItemNumber)
  45. {
  46.   return (char *)((char *)Items+((ItemNumber)*StructWidth));
  47. }
  48.